package com.hue.netty.day03.tcpprotocol;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class ClientInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().
                addLast(new MessageProtocolEncoder()).
                addLast(new ClientHandler());
    }
}
